

	<h1>Late Information</h1>
	<div class="breadcrumbs">
	My Attendance Information | <%=link_to 'Apply Leave',:action => 'apply_leave'%> | <%=link_to 'Leave Information', :action => 'leave_information'%> | <%=link_to 'Late Information',:action => 'late_information'%></div>
	
<img src="/images/cal_info2.png" />
<table class="tb_listing">
	<thead>
	<tr class="month">
		<td colspan="2"><h3><%if @attendances.size != 0%><%=@attendances[0].clock_in_date.strftime("%B %Y") unless @attendances[0].clock_in_date.nil? %><%end%></h3></td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td width="3%">&nbsp;</td>
	</tr>
	<tr>
		<th width="15%">Date</th>
		<th width="27%">Employee Name </th>
		<th width="15%">Employee Id </th>
		<th width="16%">Clock In </th>
		<th width="16%">Clock Out </th>
		<th>&nbsp;</th>
	</tr>
	</thead>
	<%@attendances.each do |attendance|%>
	<tr class="<%= cycle "odd","even" %>">
		<td width="15%"><%=attendance.clock_in_date%></td>
		<td width="27%"><%=link_to attendance.employee.name, :action => 'show_late', :id => attendance.employee%></td>
		<td><%=attendance.employee.employee_number%></td>
		<td><%=attendance.clock_in_time.strftime("%I.%M %p") unless attendance.nil? or attendance.clock_in_time.nil?%></td>
		<td><%=attendance.clock_out_time.strftime("%I.%M %p") unless attendance.nil? or attendance.clock_out_time.nil?%></td>
		<td>&nbsp;</td>
	</tr>
	<%end%>
</table>



